package cn.xpclub.singleton;
//饿汉式单例
	public class Singleton_1 {
	 // 私有构造
	 private Singleton_1() {}
	 private static Singleton_1 single = new Singleton_1();
	 // 静态工厂方法
	 public static Singleton_1 getInstance() {
	     return single;
	 }
	}